<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<c:if test="${!empty filterCategories}">
    <h3>Categories</h3>
    <div id="filter-by-category" class="block">
        <ul>
            <c:forEach var="category" items="${filterCategories}">
                <li>
                    <a href="index.htm?categoryId=${category.id}" title="${category.title}">${category.title}</a>
                </li>
            </c:forEach>
        </ul>
    </div>
</c:if>

<c:if test="${!empty filterFeeds}">
    
    <div id="filter-by-feed" class="block">
        <h3>Subscriptions</h3>
        <ul>
            <c:forEach var="feed" items="${filterFeeds}">
                <li>
                    <a href="index.htm?feedId=${feed.id}" title="${feed.title}">${feed.title}</a>
                </li>
            </c:forEach>
        </ul>
    </div>
</c:if>